package com.wk.springboot.test.service;

import com.wk.springboot.configuration.EndpointType;
import com.wk.springboot.configuration.LocalMessageTransaction;
import com.wk.springboot.test.entity.UserDTO;

public class MessageService {

    @LocalMessageTransaction(
            bizType = "USER_UPDATE",
            bizKeySpEL = "#user.userId",
            payloadClass = UserDTO.class,
            endpointType = EndpointType.HTTP,
            endpointConfigSpEL = "{'url':'http://api.com/users/' + #user.userId}"
    )
    public void updateUserInfo(){
        System.out.println("test");
    }
}
